/**
 * @fileoverview
 * Custom rendering logic for the image mashup application
 */
 

/* 
 * *******************************************************
 * custom genefinder rendering
 * *******************************************************
 */

CustomGeneFinderRenderer = function() {};
CustomGeneFinderRenderer.prototype = new flyui.genefinder.DefaultRenderer();

// example of overriding something
//CustomGeneFinderRenderer.prototype._renderResultsSummary = function( query, count ) {
//	var content = "<small>showing ";
//	content += count;
//	content += " matching gene";
//	content += (count == 0 || count > 1) ? "s " : " ";
//	content += "from <a href='http://www.flybase.org'>www.flybase.org</a> for query '"+query+"'...</small>";
//	this._resultsSummaryPane.innerHTML = content;
//};

/* 
 * *******************************************************
 * custom flyted rendering
 * *******************************************************
 */

CustomFlytedRenderer = function() {};
CustomFlytedRenderer.prototype = new flyui.flyted.ImageWidget.DefaultRenderer();

// example of overriding something
//CustomFlytedRenderer.prototype._imageToDivHTML = function( image ) {
//    flyui.debug("build content for image "+image.caption);
//    
//    var content =   "<div class=\"result\">";
//    content +=          "<p><a href=\"" + image.flytedURL + "\">";
//    content +=              "<img src=\"" + image.thumbnailURL + "\" alt=\"this is an image\">";
//    content +=          "</img></a></p>"; 
//    content +=          "<p><small>"+image.caption+"</small></p>"
//    content +=      "</div>";
//    
//    return content;
//	
//}




/* 
 * *******************************************************
 * custom bdgp rendering
 * *******************************************************
 */

CustomBdgpRenderer = function() {};
CustomBdgpRenderer.prototype = new flyui.bdgp.ImageWidget.DefaultRenderer();

